package net.realsee.domain.wcs.data.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import net.realsee.framework.core.domain.BaseEntity;
import net.realsee.framework.core.validate.AddGroup;
import net.realsee.framework.core.validate.EditGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 不良类型定义业务对象 wcs_defect_type
 *
 * @author realsee
 * @date 2023-08-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WcsDefectTypeBo extends BaseEntity {

    /**
     * 主键,自增ID
     */
    @NotNull(message = "主键,自增ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 等级代码
     */
    @NotBlank(message = "等级代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String defectType;

    /**
     * 等级描述
     */
    private String typeDesc;

    /**
     * 数据唯一ID
     */
    private String fuid;

    /**
     * 多语言文本
     */
    private Long textId;

    /**
     * 参考数据
     */
    private Long refrenceId;

    /**
     * 特性
     */
    private Long unitId;

}
